package com.henry.customviewstudy.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.henry.customviewstudy.R;
import com.henry.customviewstudy.view.CustomProgressBar;

/**
 * Created by henry on 2018/4/6.
 */

public class CustomProgressBarActivity extends AppCompatActivity {

    private CustomProgressBar customProgressBar01;
    private CustomProgressBar customProgressBar02;
    private CustomProgressBar customProgressBar03;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_custom_progress_bar);
        setTitle("自定义View (三) 圆环交替 等待效果");
        initView();
    }

    private void initView() {
        customProgressBar01 = findViewById(R.id.custom_progress_bar_01);
        customProgressBar02 = findViewById(R.id.custom_progress_bar_02);
        customProgressBar03 = findViewById(R.id.custom_progress_bar_03);
    }

    @Override
    protected void onStop() {
        super.onStop();
        customProgressBar01.setContinue(false);
        customProgressBar02.setContinue(false);
        customProgressBar03.setContinue(false);
        customProgressBar01 = null;
        customProgressBar02 = null;
        customProgressBar03 = null;
    }
}
